import request from '@/utils/request'
// 任务看板 任务列表
export const getPlanListByParams = (exFlag,patyCode,workCenter) => {
	return request({
		url: '/development/v9/bcAPIController/getPlanListByParams',
		method: 'get',
		params: {
			exFlag: exFlag,
			patyCode: patyCode,
			workCenter: workCenter,
		}
	})
}

export const NtJobByPid = (jobPid) => {
	return request({
		url: 'http://172.22.1.31:9080/plan/v9/planJobExt/listJobByPid',
		method: 'get',
		params: {
			jobPid: jobPid,
		}
	})
}

export const SyJobByPid = (jobPid) => {
	return request({
		url: 'http://192.168.10.121:9080/plan/v9/planJobExt/listJobByPid',
		method: 'get',
		params: {
			jobPid: jobPid,
		}
	})
}

export const changePlanExFlag = (data) => {
	return request({
		url: '/development/v9/bcAPIController/changePlanExFlag',
		method: 'POST',
		data:data
	})
}

export const getSimpleUID = (partNo,orgCode) => {
	return request({
		url: 'http://192.168.10.3:10001/FortuneWeb/common/getSimpleUID',
		method: 'get',
		params: {
			partNo: partNo,
			orgCode: orgCode,
		}
	})
}
export const getBcResource = () => {
	return request({
		url: '/development/v9/ntBcController/getBcResource',
		method: 'get',
	})
}


export const SYpageByParamGetHistoryAbnormalItem = (data) => {
  return request({
    url: 'http://192.168.10.121:9080/quality/v9/excelOutPut/pageByParamGetHistoryAbnormalItem',
    method: 'post',
    data: data
  })
}


export const NTpageByParamGetHistoryAbnormalItem = (data) => {
  return request({
    url: 'http://172.22.1.31:9080/quality/v9/excelOutPut/pageByParamGetHistoryAbnormalItem',
    method: 'post',
    data: data
  })
}

export const SYfileManagerList = (dataId) => {
  return request({
    url: 'http://192.168.10.121:9080/development/v9/fileManagerList',
    method: 'get',
    params: {
    	dataId: dataId,
    }
  })
}

export const NTfileManagerList = (dataId) => {
  return request({
    url: 'http://172.22.1.31:9080/development/v9/fileManagerList',
    method: 'get',
    params: {
    	dataId: dataId,
    }
  })
}

export const listByCode = (dictCode) => {
  return request({
    url: '/system/v9/dictionary/listByCode',
    method: 'get',
    params: {
      dictCode: dictCode
    }
  })
}

export const queryBcPartyList = () => {
  return request({
    url: '/development/v9/bcWorkShopManager/queryBcPartyList',
    method: 'get'
  })
}

export const editUnCompletedReasonSy = (data) =>{
  return request({
    url: 'http://192.168.10.121:9080/development/v9/ntBcController/editUnCompletedReasonNew',
    method: 'post',
    data:data,
  })
}

export const editUnCompletedReasonNt = (data) =>{
  return request({
    url: 'http://172.22.1.31:9080/development/v9/ntBcController/editUnCompletedReasonNew',
    method: 'post',
    data:data,
  })
}